package pw.goyd.game.handler.imp;

import pw.goyd.game.handler.Handler;
import pw.goyd.game.server.Log;
import pw.goyd.game.server.LoginList;
import pw.goyd.subscribe.PlayerCustomer;

/**
 * 发送玩家自己的信息
 * Created by StanWind on 2016/11/3.
 */
public class PLAYERINFO extends Handler {
    @Override
    public void handle() {
        PlayerCustomer p = LoginList.getPlayer(ctx.getChannel().getId());
        if (p == null) {
            Log.getLogger().error("空指针--->ChannelID[" + ctx.getChannel().getId() + "]");
            return;
        }
        p.sendPlayerInfo();
    }
}
